//
//  ATScriptStepTemplate.m
//  AutomationTool
//
//  Created by Laurie Marmon on 2/27/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "ATScriptStepTemplate.h"

@implementation ATScriptStepTemplate

@synthesize name = _name;
@synthesize userDescription = _userDescription;
@synthesize codeTemplate = _codeTemplate;
@synthesize displayTemplate = _displayTemplate;
@synthesize parameters = _parameters;

- (void)encodeWithCoder:(NSCoder *)aCoder {
    [aCoder encodeObject:_name forKey:@"ATTemplateName"];
    [aCoder encodeObject:_userDescription forKey:@"ATTemplateUserDescription"];
    [aCoder encodeObject:_codeTemplate forKey:@"ATTemplateCodeTemplate"];
    [aCoder encodeObject:_displayTemplate forKey:@"ATTemplateDisplayTemplate"];
    [aCoder encodeObject:_parameters forKey:@"ATTemplateParameters"];
}

- (id)initWithCoder:(NSCoder *)aDecoder {
    self = [super init];
    _name = [aDecoder decodeObjectForKey:@"ATTemplateName"];
    _userDescription = [aDecoder decodeObjectForKey:@"ATTemplateUserDescription"];
    _codeTemplate = [aDecoder decodeObjectForKey:@"ATTemplateCodeTemplate"];
    _displayTemplate = [aDecoder decodeObjectForKey:@"ATTemplateDisplayTemplate"];
    _parameters = [aDecoder decodeObjectForKey:@"ATTemplateParameters"];
    return self;
}

@end
